using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace EGEngine
{
    public class LogModule : MonoBehaviour
    {
        public ELogType LogType;
        private static ELogType _logType;

        public void Init()
        {
            _logType = LogType;
        }

        public static void Log(object o)
        {
            if (_logType <= ELogType.Log)
            {
                Debug.Log(o);
            }
        }

        public static void Warning(object o)
        {
            if (_logType <= ELogType.Warning)
            {
                Debug.LogWarning(o);
            }
        }

        public static void Error(object o)
        {
            if (_logType <= ELogType.Error)
            {
                Debug.LogError(o);
            }
        }
    }
}